package com.ms3ds.mineInfo.api;

import com.ms3ds.common.core.constant.ServiceNameConstants;
import com.ms3ds.common.core.domain.R;
import com.ms3ds.mineInfo.api.domain.Team;
import com.ms3ds.mineInfo.api.factory.RemoteTeamFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 矿山信息服务
 * 
 * @author zlw
 */
@FeignClient(contextId = "remoteTeamService", value = ServiceNameConstants.MINEINFO_SERVICE, fallbackFactory = RemoteTeamFallbackFactory.class)
public interface RemoteTeamService
{

    /**
     * 获取矿山下的生产队信息
     * @return
     */
    @GetMapping("/team/getAllTeamByMineIdForRemote")
    public R<List<Team>> getAllTeamByMineIdForRemote(@RequestParam("mineId") Long mineId);
}
